﻿#ifndef PAINTMAP_H
#define PAINTMAP_H

#include<QChart>
#include<QValueAxis>
#include<QLineSeries>
#include<QQueue>
#include<QMutex>
#include"ui_quicreator.h"
QT_CHARTS_USE_NAMESPACE
class paintMap : public QObject
{
    Q_OBJECT
public:
    explicit paintMap(QObject *parent = nullptr);
    void createCharts(Ui::QUICreator *ui);
    void prepareData();
    QLineSeries *_curSeries;
    QValueAxis *_curAxis;
private:
    QLineSeries *series0;
    QLineSeries *series1;
    QQueue<QPointF> real;
    QQueue<QPointF> fir;
    int t1;
    int t2;
    qreal intv;
    int temp1;
    int temp2;
    QMutex _mutex;
    Ui::QUICreator *ui;

signals:
public slots:
    void updateData0(double speed);
    void updateData1(double speed);

};

#endif // PAINTMAP_H
